package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.article.mapper.ArticleMapper;
import com.heima.model.article.dtos.ArticelDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ZQH
 * @version 1.0
 * @date 2023/7/17 21:07
 */

public interface ApArticleService extends IService<ApArticle> {
    /**
     * 加载文章列表
     * @param articleHomeDto
     * @param type 1加载更多，
     * @return
     */
    ResponseResult load(ArticleHomeDto articleHomeDto,Short type);

    /**
     * 保存APP端相关文章
     * @param dto
     * @return
     */
    ResponseResult saveArticle(ArticelDto dto);
}
